﻿using CommandLine;

namespace SuiHan.ProcessDaemon {
    public class RunOptions {
        /// <summary>
        /// 是否启用控制台输出
        /// </summary>
        [Option("console", Default = false, HelpText = "是否启用控制台输出")]
        public bool ConsoleEnabled { get; set; }

        /// <summary>
        /// 日志级别
        /// </summary>
#if DEBUG
        [Option("log-level", Default = "Debug", HelpText = "日志级别(Trace/Debug/Info/Warn/Error)")]
#else
        [Option("log-level", Default = "Error", HelpText = "日志级别(Trace/Debug/Info/Warn/Error)")]
#endif
        public string LogLevel { get; set; }

        /// <summary>
        /// 以Windows服务方式运行
        /// </summary>
        [Option("service", HelpText = "以Windows服务方式运行")]
        public bool IsService { get; set; }
    }
}
